/**
 * 通用css样式布局处理
 * Copyright (c) 2019 enjoy
 */
body,
html {
  font-family: 'PingFangSC-Regular', 'sans-serif';
}

/** 基础通用 **/
.pt5 {
  padding-top: 5px;
}

.pr5 {
  padding-right: 5px;
}

.pb5 {
  padding-bottom: 5px;
}

.mt5 {
  margin-top: 5px;
}

.mr5 {
  margin-right: 5px;
}

.mb5 {
  margin-bottom: 5px;
}

.mb8 {
  margin-bottom: 8px;
}

.ml5 {
  margin-left: 5px;
}

.mt10 {
  margin-top: 10px;
}

.mr10 {
  margin-right: 10px;
}

.mb10 {
  margin-bottom: 10px;
}

.ml0 {
  margin-left: 10px;
}

.mt20 {
  margin-top: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mb20 {
  margin-bottom: 20px;
}

.m20 {
  margin-left: 20px;
}

.font35 {
  font-size: 35px;
}

.pdr12 {
  padding-right: 12px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

.el-dialog:not(.is-fullscreen) {
  border-radius: 6px;
  overflow: hidden;
}

.el-dialog {
  .el-button {
    padding: 7px 9px 7px 7px;
  }
}

.el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body {
  overflow: auto;
  overflow-x: hidden;
  max-height: 70vh;
  padding: 10px 20px 0;
}

.el-dialog--center .el-dialog__body {
  padding-bottom: 15px;
}

.el-table {
  .el-table__fixed {
        height: 98.5% !important; // 此处的important表示优先于element.style
        bottom: 17px; // 改为自动高度后，设置与父容器的底部距离，则高度会动态改变
  }
  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    th {
      word-break: break-word;
      background-color: #f8f8f9;
      color: #515a6e;
      height: 40px;
      font-size: 13px;
    }
  }

  .el-table__body-wrapper {
    .el-button [class*="el-icon-"]+span {
      margin-left: 1px;
    }
  }
}

// textarea字体设置
.el-textarea__inner {
  font-family: 'PingFangSC-Regular', 'sans-serif';
}

/*  全局 el-button 样式 Begin   */
.el-button:hover {
  color:#{'var(--current-light)'};
  //background-color: #{'var(--current-light)'};
  //border-color: #{'var(--current-light)'};
}

.el-button--primary,
.el-switch.is-checked .el-switch__core,
.el-radio__input.is-checked .el-radio__inner,
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-radio-button__orig-radio:checked+.el-radio-button__inner {
  color: white;
  background-color: #{'var(--current-color)'};
  border-color: #{'var(--current-color)'};
  box-shadow: none;
}

.el-button--primary:hover,
.el-button--primary:focus {
  color: white;
  background-color: #{'var(--current-light)'};
  border-color: #{'var(--current-light)'};
}

.el-button--primary.is-disabled,
.el-button--primary.is-disabled:hover,
.el-button--primary.is-disabled:focus,
.el-button--primary.is-disabled:active {
  color: white;
  background-color: #DCDFE6;
  border-color: #DCDFE6;
}

.el-radio__input.is-checked+.el-radio__label,
.el-checkbox__input.is-checked+.el-checkbox__label,
.el-select-dropdown__item.selected,
.el-button--text,
.el-radio-button__inner:hover {
  color:#{'var(--current-color)'};
}

.el-radio__inner:hover,
.el-radio__inner:focus,
.el-pagination__sizes .el-input .el-input__inner:hover,
.el-select .el-input.is-focus .el-input__inner,
.el-input__inner:focus {
  border-color: #{'var(--current-color)'};
}

/*  全局 el-button 样式 End   */
.el-dropdown-menu__item:not(.is-disabled):hover,
.el-dropdown-menu__item:focus {
  color: #{'var(--current-color)'};
}

.el-form-item__label {
  font-weight: normal;
  font-size: 12px;
}

/*  全局 el-talbe 样式Begin   */
.el-table {
  border-top: 1px solid #E3E8EE;
  border-left: 1px solid #E3E8EE;
  border-right: 1px solid #E3E8EE;
}

.el-form-item--small .vue-treeselect__control,
.el-form-item--small .vue-treeselect__placeholder,
.el-form-item--small .vue-treeselect__single-value {
  height: 30px;
  line-height: 30px;
}

/*表头*/
.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th {
  background-color: #F7F8FA !important;
  height: 34px;
  font-weight: normal;
}

.el-table th.el-table__cell {
  padding: 0;
  font-size: 12px;
}

.el-table th.el-table__cell.is-left>.cell {
  justify-content: flex-start;
}

.el-table th.el-table__cell.is-center>.cell {
  justify-content: center;
}

.el-table th.el-table__cell.is-right>.cell {
  justify-content: flex-end;
}

.el-table th.el-table__cell>.cell {
  display: inline-flex;
  align-items: center;

}


/*斑马纹*/
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background-color: #FBFBFC !important;
}

// .el-table th.el-table__cell>.cell {
//   border-bottom: 1px solid #EDEDF2;
// }

// 表格  题目的加粗显示字
.el-table th.el-table__cell>.cell {
  font-weight: 600;
  color: #333333;
  font-family: 'PingFangSC-Regular', 'sans-serif';
}


/*单元格高度*/
/*冻结单元格高度*/
.el-table .el-table__header-wrapper .el-table__cell,
.el-table .el-table__fixed .el-table__fixed-header-wrapper .el-table__cell {
  padding: 0;
  font-size: 12px;
}

.el-table .el-table__body-wrapper .el-table__cell,
.el-table .el-table__fixed .el-table__fixed-body-wrapper .el-table__cell,
.el-table .el-table__fixed-right .el-table__fixed-body-wrapper .el-table__cell {
  padding: 2px 0;
  font-size: 12px;
}

//表格分页样式Begin
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li {
  border-radius: 4px;
  background-color: white;
  border: 1px solid #D7DDE4;
  height: 26px;
  line-height: 24px;
  font-weight: normal;
  margin: 0 3px;
}

.el-pagination .el-select .el-input .el-input__inner {
  padding-right: 8px;
  border-radius: 4px;
}
.el-date-editor.el-input, .el-date-editor.el-input__inner{
  width: 100%;
}

.el-input--mini .el-input__inner,
.el-pagination span:not([class*=suffix]),
.el-pagination button {
  height: 26px;
  line-height: 26px;
}

.el-pagination .el-input__suffix {
  display: none;
}

.el-pagination .el-select .el-input {
  width: 75px;
}

//表格分页样式End




//菜单hover样式 Bengin
.el-menu--horizontal .el-menu--popup .el-menu-item:hover,
.el-menu--horizontal .el-menu--popup .el-submenu:hover .el-submenu__title {
  color: white;
  background-color: #{'var(--current-color)'};
}

.el-menu--horizontal .el-menu--popup .el-submenu:hover .el-submenu__title .el-submenu__icon-arrow {
  color: white;
}

//菜单hover样式 End


//全局表格操作按钮样式
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #{'var(--current-color)'};
}

.action-wrap {
  line-height: 1em;
  display: flex;
  align-items: center;
}

.is-left .action-wrap {
  justify-content: flex-start;
}

.is-center .action-wrap {
  justify-content: center;
}

.is-right .action-wrap {
  justify-content: flex-end;
}

.action-wrap .el-dropdown-link {
  margin: 0 !important;
}

.action-wrap>span:last-child {
  margin: 0;
}

.table-action {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

//.action-wrap .table-edit,.action-wrap .table-add,.action-wrap .table-delete{
//  width:28px;
//  height:28px;
//  margin-right: 8px;
//}
//.table-edit{
//   background: url('../icons/table/edit.png') no-repeat center;
//}
/*  全局 el-talbe 样式End   */

/*  全局 table btn 样式 Begin   */
.action-btns {
  padding: 8px 9px 8px 2px;
  background-color: #E4EFFD;
  margin: 0 0 8px 0 !important;
}

/*  全局 table btn 样式 End  */

/** 表单布局 **/
.form-header {
  font-size: 15px;
  color: #6379bb;
  border-bottom: 1px solid #ddd;
  margin: 8px 10px 25px 10px;
  padding-bottom: 5px
}

/** 表格布局 **/
.pagination-container {
  position: relative;
  height: 25px;
  margin-bottom: 10px;
  margin-top: 15px;
  padding: 0  !important;
}

/* tree border */
.tree-border {
  margin-top: 5px;
  border: 1px solid #e5e6e7;
  background: #FFFFFF none;
  border-radius: 4px;
}

.pagination-container .el-pagination {
  right: 0;
  position: relative;width: 100%;clear: both;
  display:flex;justify-content: flex-end;
  .el-pagination__total{

  }
  .el-pagination__sizes{
    margin-right: auto;
  }


}

@media (max-width : 768px) {
  .pagination-container .el-pagination>.el-pagination__jump {
    display: none !important;
  }

  .pagination-container .el-pagination>.el-pagination__sizes {
    display: none !important;
  }
}

.el-table .fixed-width .el-button--mini {
  padding-left: 0;
  padding-right: 0;
  width: inherit;
}

.el-button--mini {
  padding: 7px 10px;
  border-radius: 4px;
}

/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link {
  cursor: pointer;
  color: #{'var(--current-color)'};
  margin-left: 5px;
}

.el-table .el-dropdown,
.el-icon-arrow-down {
  font-size: 12px;
}

.el-tree-node__content>.el-checkbox {
  margin-right: 8px;
}

.list-group-striped>.list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.list-group {
  padding-left: 0px;
  list-style: none;
}

.list-group-item {
  border-bottom: 1px solid #e7eaec;
  border-top: 1px solid #e7eaec;
  margin-bottom: -1px;
  padding: 11px 0px;
  font-size: 13px;
}

.pull-right {
  float: right !important;
}

.el-card__header {
  padding: 14px 15px 7px;
  min-height: 40px;
}

.el-card__body {
  padding: 15px;
}

.card-box {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
  background: #48D1CC;
  border-color: #48D1CC;
  color: #FFFFFF;
}

.el-button--cyan {
  background-color: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}

/* text color */
.text-navy {
  color: #1ab394;
}

.text-primary {
  color: inherit;
}

.text-success {
  color: #1c84c6;
}

.text-info {
  color: #23c6c8;
}

.text-warning {
  color: #f8ac59;
}

.text-danger {
  color: #ed5565;
}

.text-muted {
  color: #888888;
}

/* image */
.img-circle {
  border-radius: 50%;
}

.img-lg {
  width: 120px;
  height: 120px;
}

.avatar-upload-preview {
  position: absolute;
  top: 50%;
  transform: translate(50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 4px #ccc;
  overflow: hidden;
}

/* 拖拽列样式 */
.sortable-ghost {
  opacity: .8;
  color: #fff !important;
  background: #42b983 !important;
}

.top-right-btn {
  position: relative;
  float: right;
}

/* 弹窗样式 */
.el-dialog__header {
  padding: 10px 20px !important;
  color: #333333 !important;
  text-align: left;
  border-bottom: 1px solid #E5E5E5;
  // background: linear-gradient(to right, #{'var(--current-dark)'}, #{'var(--current-light)'});

  .el-dialog__title,
  .s-title {
    color: #333333 !important;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    padding-left: 10px;
    border-left: 3px solid #0B7BE3;
    line-height: 20px;
  }

  .el-dialog__close {
    color: #898989 !important;
    border-radius: 50%;
    border: 1px solid #787878;
    padding: 2px;
    font-size: 13px;

    &:hover {
      color: #787878;
    }
  }

  .el-dialog__headerbtn {
    top: 12px;
    right: 16px;
  }
}

.el-dialog__body {
  padding: 20px;
}

.el-dialog__footer {

  padding: 6px 12px 20px;

  .SaveBtn {
    background: #20B09F;
    color: #fff;
    border: none;
  }
}

/* service组件 */
.service-drop-menu .popper__arrow {
  left: 44px !important;
}

// 全局设置滚动样式
/* 设置滚动条的样式 */
::-webkit-scrollbar {
    width: 9px;
    height: 7px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(237, 237, 242, 1);
  border-radius: 2px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(0, 0, 0, 0.1);
}

.el-tooltip__popper.is-light {
  color: #999999;
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: 4px;
}

.sidebar-scrollbar .el-scrollbar__view {
  overflow-x: hidden;
}
.el-select-dropdown__item{
  font-size: 12px;
}
.el-form--inline .el-form-item__content{
  vertical-align: middle;
}

//小输入框的高度和行高
.el-input--small .el-input__inner{
  height: 28px;line-height: 28px
}

//选择框的icon位置
.el-select .el-input--small .el-input__suffix{
  top: -3px;
}
.el-input .el-input__suffix{
  top: 1px;
}

.common-dialog {
  .el-dialog--center .el-dialog__body{
    padding: 15px 20px;
    padding-bottom: 0;

  }
  .el-form--label-top .el-form-item__label{
    padding-bottom: 0;
  }
  .el-form-item--small.el-form-item{
    margin-bottom: 10px;
  }
}

